| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRSetFrameRate function to set the frame rate of an object node.
OSErr QTVRSetFrameRate (QTVRInstance qtvr, float rate);
The QTVRSetFrameRate function sets the frame rate of the object node specified by the qtvr parameter to the rate specified by the rate parameter. This function is most useful when an object is being viewed with a looping animation. (The current view of the object may contain frames that are played in a loop, as specified by the file format.) You can use QTVRSetFrameRate to change the frame rate of the loop.
If the value specified in the rate parameter lies outside the valid range, QTVRSetFrameRate returns the result code constraintReachedErr and sets the frame rate to the nearest constraint.
Use QTVRGetFrameRate (link) to get the frame rate of an object node.
| Previous | Chapter contents | Chapter top | Section top | Next |